package com.xintonghua.hongyi.adapter;

import android.app.Activity;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.xintonghua.base.adapter.BaseAdapter;
import com.xintonghua.hongyi.R;
import com.xintonghua.hongyi.bean.ClubCardBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 作者：wanxianyi
 * 时间：2018/1/10.
 * 包名：com.xintonghua.hongyi.adapter
 */

public class ClubCardAdapter extends BaseAdapter<ClubCardBean, ClubCardAdapter.HoldView> {


    public ClubCardAdapter(Activity mActivity, List<ClubCardBean> list) {
        super(mActivity, list);
    }

    @Override
    public HoldView onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = inflater.inflate(R.layout.adapter_club_card, parent, false);
        return new HoldView(view);
    }

    @Override
    public void onBindViewHolder(HoldView holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 4;
    }

    class HoldView extends RecyclerView.ViewHolder {
        @BindView(R.id.iv_club)
        ImageView ivClub;
        @BindView(R.id.tv_club_name)
        TextView tvClubName;
        @BindView(R.id.tv_club_degree)
        TextView tvClubDegree;

        public HoldView(View itemView) {
            super(itemView);
            ButterKnife.bind(this, itemView);
        }
    }
}
